const methodKey = 'sayName';

let person = {
  [methodKey](name) {
    console.log(`My name is ${name}`);
  }
} 

person.sayName('Matt');  // My name is Matt
